package com.sneaker.shower.entity.domain.order.discount;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sneaker.shower.entity.domain.BaseDomain;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author Hechangjian
 * @version 1.0
 * @className DiscountDO
 * @date 2019/11/25 17:45
 * @description 优惠明细
 * @program bath
 */
@Data
@TableName("order_discount")
public class OrderDiscountDO extends BaseDomain {

    private Long userGuid;
    /**
     * 优惠类型 1，优惠券
     */
    private Integer discountType;

    /**
     * 优惠总金额
     */
    private BigDecimal discountFee;

    /**
     * 订单guid
     */
    private Long orderGuid;

    /**
     * 当discountType为1时有值
     * 优惠券GUID
     */
    private Long couponGuid;
}
